package com.tjetc.service.impl;


import cn.hutool.core.util.RandomUtil;
import com.tjetc.dao.PassMapper;
import com.tjetc.domain.po.District;
import com.tjetc.domain.po.Pass;
import com.tjetc.domain.vo.PassVo;
import com.tjetc.service.PassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.TimeUnit;

@Service
public class PassServiceImpl implements PassService {

    @Autowired
    PassMapper passMapper;

    @Autowired
    StringRedisTemplate stringRedisTemplate;


    @Override
    public List<Pass> list(Integer vocalcontenId) {
        return passMapper.list(vocalcontenId);
    }

    @Override
    public List<District> districtList() {
        return passMapper.districtList();
    }

    @Override
    public PassVo findById(Integer id) {
        return passMapper.findById(id);
    }

    @Override
    public List<Pass> findAll() {
        return passMapper.findAll();
    }


}
